package fr.efrei.tradesys.hibernate.dao;

import java.util.List;

import fr.efrei.tradesys.hibernate.beans.Currency;
import fr.efrei.tradesys.hibernate.beans.Rate;

public interface RateDao
{

	public List<Rate> getAllRate();

	public List<Rate> getLastRates();

	public List<Rate> getRatesToCurrency(Currency c);

	public List<Rate> getRatesFromCurrency(Currency c);

	public Rate getRate(Currency c1, Currency c2);

	public List<Rate> getRates(Currency c1, Currency c2);

	public void addRate(Rate r);

	public void updateRate(Rate r);

	public void removeRate(Rate r);

}
